{"ast":null,"code":"import _defineProperty from \"/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\nimport _slicedToArray from \"/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@babel/runtime/helpers/esm/slicedToArray.js\";\nimport DeleteOutlined from \"@ant-design/icons/es/icons/DeleteOutlined\";\nimport DownloadOutlined from \"@ant-design/icons/es/icons/DownloadOutlined\";\nimport EyeOutlined from \"@ant-design/icons/es/icons/EyeOutlined\";\nimport classNames from 'classnames';\nimport CSSMotion from 'rc-motion';\nimport * as React from 'react';\nimport { ConfigContext } from '../../config-provider';\nimport Progress from '../../progress';\nimport Tooltip from '../../tooltip';\nvar ListItem = /*#__PURE__*/React.forwardRef(function (_ref, ref) {\n  var prefixCls = _ref.prefixCls,\n    className = _ref.className,\n    style = _ref.style,\n    locale = _ref.locale,\n    listType = _ref.listType,\n    file = _ref.file,\n    items = _ref.items,\n    progressProps = _ref.progress,\n    iconRender = _ref.iconRender,\n    actionIconRender = _ref.actionIconRender,\n    itemRender = _ref.itemRender,\n    isImgUrl = _ref.isImgUrl,\n    showPreviewIcon = _ref.showPreviewIcon,\n    showRemoveIcon = _ref.showRemoveIcon,\n    showDownloadIcon = _ref.showDownloadIcon,\n    customPreviewIcon = _ref.previewIcon,\n    customRemoveIcon = _ref.removeIcon,\n    customDownloadIcon = _ref.downloadIcon,\n    onPreview = _ref.onPreview,\n    onDownload = _ref.onDownload,\n    onClose = _ref.onClose;\n  var _a, _b;\n  // Status: which will ignore `removed` status\n  var status = file.status;\n  var _React$useState = React.useState(status),\n    _React$useState2 = _slicedToArray(_React$useState, 2),\n    mergedStatus = _React$useState2[0],\n    setMergedStatus = _React$useState2[1];\n  React.useEffect(function () {\n    if (status !== 'removed') {\n      setMergedStatus(status);\n    }\n  }, [status]);\n  // Delay to show the progress bar\n  var _React$useState3 = React.useState(false),\n    _React$useState4 = _slicedToArray(_React$useState3, 2),\n    showProgress = _React$useState4[0],\n    setShowProgress = _React$useState4[1];\n  var progressRafRef = React.useRef(null);\n  React.useEffect(function () {\n    progressRafRef.current = setTimeout(function () {\n      setShowProgress(true);\n    }, 300);\n    return function () {\n      if (progressRafRef.current) {\n        clearTimeout(progressRafRef.current);\n      }\n    };\n  }, []);\n  var iconNode = iconRender(file);\n  var icon = /*#__PURE__*/React.createElement(\"div\", {\n    className: \"\".concat(prefixCls, \"-icon\")\n  }, iconNode);\n  if (listType === 'picture' || listType === 'picture-card') {\n    if (mergedStatus === 'uploading' || !file.thumbUrl && !file.url) {\n      var _classNames;\n      var uploadingClassName = classNames((_classNames = {}, _defineProperty(_classNames, \"\".concat(prefixCls, \"-list-item-thumbnail\"), true), _defineProperty(_classNames, \"\".concat(prefixCls, \"-list-item-file\"), mergedStatus !== 'uploading'), _classNames));\n      icon = /*#__PURE__*/React.createElement(\"div\", {\n        className: uploadingClassName\n      }, iconNode);\n    } else {\n      var _classNames2;\n      var thumbnail = (isImgUrl === null || isImgUrl === void 0 ? void 0 : isImgUrl(file)) ? /*#__PURE__*/React.createElement(\"img\", {\n        src: file.thumbUrl || file.url,\n        alt: file.name,\n        className: \"\".concat(prefixCls, \"-list-item-image\"),\n        crossOrigin: file.crossOrigin\n      }) : iconNode;\n      var aClassName = classNames((_classNames2 = {}, _defineProperty(_classNames2, \"\".concat(prefixCls, \"-list-item-thumbnail\"), true), _defineProperty(_classNames2, \"\".concat(prefixCls, \"-list-item-file\"), isImgUrl && !isImgUrl(file)), _classNames2));\n      icon = /*#__PURE__*/React.createElement(\"a\", {\n        className: aClassName,\n        onClick: function onClick(e) {\n          return onPreview(file, e);\n        },\n        href: file.url || file.thumbUrl,\n        target: \"_blank\",\n        rel: \"noopener noreferrer\"\n      }, thumbnail);\n    }\n  }\n  var listItemClassName = classNames(\"\".concat(prefixCls, \"-list-item\"), \"\".concat(prefixCls, \"-list-item-\").concat(mergedStatus));\n  var linkProps = typeof file.linkProps === 'string' ? JSON.parse(file.linkProps) : file.linkProps;\n  var removeIcon = showRemoveIcon ? actionIconRender((typeof customRemoveIcon === 'function' ? customRemoveIcon(file) : customRemoveIcon) || /*#__PURE__*/React.createElement(DeleteOutlined, null), function () {\n    return onClose(file);\n  }, prefixCls, locale.removeFile) : null;\n  var downloadIcon = showDownloadIcon && mergedStatus === 'done' ? actionIconRender((typeof customDownloadIcon === 'function' ? customDownloadIcon(file) : customDownloadIcon) || /*#__PURE__*/React.createElement(DownloadOutlined, null), function () {\n    return onDownload(file);\n  }, prefixCls, locale.downloadFile) : null;\n  var downloadOrDelete = listType !== 'picture-card' && /*#__PURE__*/React.createElement(\"span\", {\n    key: \"download-delete\",\n    className: classNames(\"\".concat(prefixCls, \"-list-item-actions\"), {\n      picture: listType === 'picture'\n    })\n  }, downloadIcon, removeIcon);\n  var listItemNameClass = classNames(\"\".concat(prefixCls, \"-list-item-name\"));\n  var fileName = file.url ? [/*#__PURE__*/React.createElement(\"a\", Object.assign({\n    key: \"view\",\n    target: \"_blank\",\n    rel: \"noopener noreferrer\",\n    className: listItemNameClass,\n    title: file.name\n  }, linkProps, {\n    href: file.url,\n    onClick: function onClick(e) {\n      return onPreview(file, e);\n    }\n  }), file.name), downloadOrDelete] : [/*#__PURE__*/React.createElement(\"span\", {\n    key: \"view\",\n    className: listItemNameClass,\n    onClick: function onClick(e) {\n      return onPreview(file, e);\n    },\n    title: file.name\n  }, file.name), downloadOrDelete];\n  var previewStyle = {\n    pointerEvents: 'none',\n    opacity: 0.5\n  };\n  var previewIcon = showPreviewIcon ? /*#__PURE__*/React.createElement(\"a\", {\n    href: file.url || file.thumbUrl,\n    target: \"_blank\",\n    rel: \"noopener noreferrer\",\n    style: file.url || file.thumbUrl ? undefined : previewStyle,\n    onClick: function onClick(e) {\n      return onPreview(file, e);\n    },\n    title: locale.previewFile\n  }, typeof customPreviewIcon === 'function' ? customPreviewIcon(file) : customPreviewIcon || /*#__PURE__*/React.createElement(EyeOutlined, null)) : null;\n  var pictureCardActions = listType === 'picture-card' && mergedStatus !== 'uploading' && /*#__PURE__*/React.createElement(\"span\", {\n    className: \"\".concat(prefixCls, \"-list-item-actions\")\n  }, previewIcon, mergedStatus === 'done' && downloadIcon, removeIcon);\n  var _React$useContext = React.useContext(ConfigContext),\n    getPrefixCls = _React$useContext.getPrefixCls;\n  var rootPrefixCls = getPrefixCls();\n  var dom = /*#__PURE__*/React.createElement(\"div\", {\n    className: listItemClassName\n  }, icon, fileName, pictureCardActions, showProgress && /*#__PURE__*/React.createElement(CSSMotion, {\n    motionName: \"\".concat(rootPrefixCls, \"-fade\"),\n    visible: mergedStatus === 'uploading',\n    motionDeadline: 2000\n  }, function (_ref2) {\n    var motionClassName = _ref2.className;\n    // show loading icon if upload progress listener is disabled\n    var loadingProgress = 'percent' in file ? /*#__PURE__*/React.createElement(Progress, Object.assign({}, progressProps, {\n      type: \"line\",\n      percent: file.percent\n    })) : null;\n    return /*#__PURE__*/React.createElement(\"div\", {\n      className: classNames(\"\".concat(prefixCls, \"-list-item-progress\"), motionClassName)\n    }, loadingProgress);\n  }));\n  var message = file.response && typeof file.response === 'string' ? file.response : ((_a = file.error) === null || _a === void 0 ? void 0 : _a.statusText) || ((_b = file.error) === null || _b === void 0 ? void 0 : _b.message) || locale.uploadError;\n  var item = mergedStatus === 'error' ? /*#__PURE__*/React.createElement(Tooltip, {\n    title: message,\n    getPopupContainer: function getPopupContainer(node) {\n      return node.parentNode;\n    }\n  }, dom) : dom;\n  return /*#__PURE__*/React.createElement(\"div\", {\n    className: classNames(\"\".concat(prefixCls, \"-list-item-container\"), className),\n    style: style,\n    ref: ref\n  }, itemRender ? itemRender(item, file, items, {\n    download: onDownload.bind(null, file),\n    preview: onPreview.bind(null, file),\n    remove: onClose.bind(null, file)\n  }) : item);\n});\nexport default ListItem;","map":{"version":3,"names":["DeleteOutlined","DownloadOutlined","EyeOutlined","classNames","CSSMotion","React","ConfigContext","Progress","Tooltip","ListItem","forwardRef","_ref","ref","prefixCls","className","style","locale","listType","file","items","progressProps","progress","iconRender","actionIconRender","itemRender","isImgUrl","showPreviewIcon","showRemoveIcon","showDownloadIcon","customPreviewIcon","previewIcon","customRemoveIcon","removeIcon","customDownloadIcon","downloadIcon","onPreview","onDownload","onClose","_a","_b","status","useState","mergedStatus","setMergedStatus","useEffect","showProgress","setShowProgress","progressRafRef","useRef","current","setTimeout","clearTimeout","iconNode","icon","createElement","thumbUrl","url","uploadingClassName","thumbnail","src","alt","name","crossOrigin","aClassName","onClick","e","href","target","rel","listItemClassName","linkProps","JSON","parse","removeFile","downloadFile","downloadOrDelete","key","picture","listItemNameClass","fileName","Object","assign","title","previewStyle","pointerEvents","opacity","undefined","previewFile","pictureCardActions","useContext","getPrefixCls","rootPrefixCls","dom","motionName","visible","motionDeadline","_ref2","motionClassName","loadingProgress","type","percent","message","response","error","statusText","uploadError","item","getPopupContainer","node","parentNode","download","bind","preview","remove"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/antd/es/upload/UploadList/ListItem.js"],"sourcesContent":["import DeleteOutlined from \"@ant-design/icons/es/icons/DeleteOutlined\";\nimport DownloadOutlined from \"@ant-design/icons/es/icons/DownloadOutlined\";\nimport EyeOutlined from \"@ant-design/icons/es/icons/EyeOutlined\";\nimport classNames from 'classnames';\nimport CSSMotion from 'rc-motion';\nimport * as React from 'react';\nimport { ConfigContext } from '../../config-provider';\nimport Progress from '../../progress';\nimport Tooltip from '../../tooltip';\nconst ListItem = /*#__PURE__*/React.forwardRef((_ref, ref) => {\n  let {\n    prefixCls,\n    className,\n    style,\n    locale,\n    listType,\n    file,\n    items,\n    progress: progressProps,\n    iconRender,\n    actionIconRender,\n    itemRender,\n    isImgUrl,\n    showPreviewIcon,\n    showRemoveIcon,\n    showDownloadIcon,\n    previewIcon: customPreviewIcon,\n    removeIcon: customRemoveIcon,\n    downloadIcon: customDownloadIcon,\n    onPreview,\n    onDownload,\n    onClose\n  } = _ref;\n  var _a, _b;\n  // Status: which will ignore `removed` status\n  const {\n    status\n  } = file;\n  const [mergedStatus, setMergedStatus] = React.useState(status);\n  React.useEffect(() => {\n    if (status !== 'removed') {\n      setMergedStatus(status);\n    }\n  }, [status]);\n  // Delay to show the progress bar\n  const [showProgress, setShowProgress] = React.useState(false);\n  const progressRafRef = React.useRef(null);\n  React.useEffect(() => {\n    progressRafRef.current = setTimeout(() => {\n      setShowProgress(true);\n    }, 300);\n    return () => {\n      if (progressRafRef.current) {\n        clearTimeout(progressRafRef.current);\n      }\n    };\n  }, []);\n  const iconNode = iconRender(file);\n  let icon = /*#__PURE__*/React.createElement(\"div\", {\n    className: `${prefixCls}-icon`\n  }, iconNode);\n  if (listType === 'picture' || listType === 'picture-card') {\n    if (mergedStatus === 'uploading' || !file.thumbUrl && !file.url) {\n      const uploadingClassName = classNames({\n        [`${prefixCls}-list-item-thumbnail`]: true,\n        [`${prefixCls}-list-item-file`]: mergedStatus !== 'uploading'\n      });\n      icon = /*#__PURE__*/React.createElement(\"div\", {\n        className: uploadingClassName\n      }, iconNode);\n    } else {\n      const thumbnail = (isImgUrl === null || isImgUrl === void 0 ? void 0 : isImgUrl(file)) ? /*#__PURE__*/React.createElement(\"img\", {\n        src: file.thumbUrl || file.url,\n        alt: file.name,\n        className: `${prefixCls}-list-item-image`,\n        crossOrigin: file.crossOrigin\n      }) : iconNode;\n      const aClassName = classNames({\n        [`${prefixCls}-list-item-thumbnail`]: true,\n        [`${prefixCls}-list-item-file`]: isImgUrl && !isImgUrl(file)\n      });\n      icon = /*#__PURE__*/React.createElement(\"a\", {\n        className: aClassName,\n        onClick: e => onPreview(file, e),\n        href: file.url || file.thumbUrl,\n        target: \"_blank\",\n        rel: \"noopener noreferrer\"\n      }, thumbnail);\n    }\n  }\n  const listItemClassName = classNames(`${prefixCls}-list-item`, `${prefixCls}-list-item-${mergedStatus}`);\n  const linkProps = typeof file.linkProps === 'string' ? JSON.parse(file.linkProps) : file.linkProps;\n  const removeIcon = showRemoveIcon ? actionIconRender((typeof customRemoveIcon === 'function' ? customRemoveIcon(file) : customRemoveIcon) || /*#__PURE__*/React.createElement(DeleteOutlined, null), () => onClose(file), prefixCls, locale.removeFile) : null;\n  const downloadIcon = showDownloadIcon && mergedStatus === 'done' ? actionIconRender((typeof customDownloadIcon === 'function' ? customDownloadIcon(file) : customDownloadIcon) || /*#__PURE__*/React.createElement(DownloadOutlined, null), () => onDownload(file), prefixCls, locale.downloadFile) : null;\n  const downloadOrDelete = listType !== 'picture-card' && /*#__PURE__*/React.createElement(\"span\", {\n    key: \"download-delete\",\n    className: classNames(`${prefixCls}-list-item-actions`, {\n      picture: listType === 'picture'\n    })\n  }, downloadIcon, removeIcon);\n  const listItemNameClass = classNames(`${prefixCls}-list-item-name`);\n  const fileName = file.url ? [/*#__PURE__*/React.createElement(\"a\", Object.assign({\n    key: \"view\",\n    target: \"_blank\",\n    rel: \"noopener noreferrer\",\n    className: listItemNameClass,\n    title: file.name\n  }, linkProps, {\n    href: file.url,\n    onClick: e => onPreview(file, e)\n  }), file.name), downloadOrDelete] : [/*#__PURE__*/React.createElement(\"span\", {\n    key: \"view\",\n    className: listItemNameClass,\n    onClick: e => onPreview(file, e),\n    title: file.name\n  }, file.name), downloadOrDelete];\n  const previewStyle = {\n    pointerEvents: 'none',\n    opacity: 0.5\n  };\n  const previewIcon = showPreviewIcon ? /*#__PURE__*/React.createElement(\"a\", {\n    href: file.url || file.thumbUrl,\n    target: \"_blank\",\n    rel: \"noopener noreferrer\",\n    style: file.url || file.thumbUrl ? undefined : previewStyle,\n    onClick: e => onPreview(file, e),\n    title: locale.previewFile\n  }, typeof customPreviewIcon === 'function' ? customPreviewIcon(file) : customPreviewIcon || /*#__PURE__*/React.createElement(EyeOutlined, null)) : null;\n  const pictureCardActions = listType === 'picture-card' && mergedStatus !== 'uploading' && /*#__PURE__*/React.createElement(\"span\", {\n    className: `${prefixCls}-list-item-actions`\n  }, previewIcon, mergedStatus === 'done' && downloadIcon, removeIcon);\n  const {\n    getPrefixCls\n  } = React.useContext(ConfigContext);\n  const rootPrefixCls = getPrefixCls();\n  const dom = /*#__PURE__*/React.createElement(\"div\", {\n    className: listItemClassName\n  }, icon, fileName, pictureCardActions, showProgress && /*#__PURE__*/React.createElement(CSSMotion, {\n    motionName: `${rootPrefixCls}-fade`,\n    visible: mergedStatus === 'uploading',\n    motionDeadline: 2000\n  }, _ref2 => {\n    let {\n      className: motionClassName\n    } = _ref2;\n    // show loading icon if upload progress listener is disabled\n    const loadingProgress = 'percent' in file ? /*#__PURE__*/React.createElement(Progress, Object.assign({}, progressProps, {\n      type: \"line\",\n      percent: file.percent\n    })) : null;\n    return /*#__PURE__*/React.createElement(\"div\", {\n      className: classNames(`${prefixCls}-list-item-progress`, motionClassName)\n    }, loadingProgress);\n  }));\n  const message = file.response && typeof file.response === 'string' ? file.response : ((_a = file.error) === null || _a === void 0 ? void 0 : _a.statusText) || ((_b = file.error) === null || _b === void 0 ? void 0 : _b.message) || locale.uploadError;\n  const item = mergedStatus === 'error' ? /*#__PURE__*/React.createElement(Tooltip, {\n    title: message,\n    getPopupContainer: node => node.parentNode\n  }, dom) : dom;\n  return /*#__PURE__*/React.createElement(\"div\", {\n    className: classNames(`${prefixCls}-list-item-container`, className),\n    style: style,\n    ref: ref\n  }, itemRender ? itemRender(item, file, items, {\n    download: onDownload.bind(null, file),\n    preview: onPreview.bind(null, file),\n    remove: onClose.bind(null, file)\n  }) : item);\n});\nexport default ListItem;"],"mappings":";;AAAA,OAAOA,cAAc,MAAM,2CAA2C;AACtE,OAAOC,gBAAgB,MAAM,6CAA6C;AAC1E,OAAOC,WAAW,MAAM,wCAAwC;AAChE,OAAOC,UAAU,MAAM,YAAY;AACnC,OAAOC,SAAS,MAAM,WAAW;AACjC,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,SAASC,aAAa,QAAQ,uBAAuB;AACrD,OAAOC,QAAQ,MAAM,gBAAgB;AACrC,OAAOC,OAAO,MAAM,eAAe;AACnC,IAAMC,QAAQ,GAAG,aAAaJ,KAAK,CAACK,UAAU,CAAC,UAACC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